const divs=document.querySelectorAll('.tab-switch div')
const div1=document.querySelector('.tab1')
const div2=document.querySelector('.tab2')

const changeTab=()=>{
    divs.forEach(item=>{
        item.classList.remove('active')
    })
    event.target.classList.add('active')
    div1.style.display='none'
    div2.style.display='none'
    if(event.target.dataset.index==0){
        div2.style.display='block'
    }else{
        div1.style.display='block'
    }
}
const gotoindex=()=>{
    window.location.href='./index.html'
}


